from rich.console import Console

console = Console()
console.print("this is a message 加粗", style="bold")
console.print("this is a message 斜体", style="italic")
console.print("this is a message 下划线", style="underline")
console.print("this is a message 删除线", style="strike")
console.print("this is a message 闪烁", style="blink")

# 简写
console.print("this is a message 加粗", style="b")
console.print("this is a message 斜体", style="i")
console.print("this is a message 下划线", style="u")
console.print("this is a message 删除线", style="s")